<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        .container {
            height: 100vh;
            width: 100vw;
            display: flex;
            flex-direction: column;
            align-items: center;
            /* background-image: url(img/home/background.jpg) ; */
            /* opacity: 0.4; */
            background-size: 100% 100%;
        }

        .container::after {
            content: "";
            width: 100vw;
            height: 100vh;
            display: block;
            background-color: rgba(255, 255, 255, 0.5);
            position: absolute;
        }

        .container .avatar {
            margin-top: 25vh;
            margin-bottom: 3vh;
            z-index: 1;
            width: 200px;
            height: 200px;
            background-image: url(img/home/avatar.jpg);
            background-size: 100% 100%;
            border-radius: 50%;
            box-shadow: 0 5px 15px rgba(0, 0, 0, .25);
        }

        .container .message .name {
            font-size: 40px;
            font-weight: 700;
            letter-spacing: 10px;
            text-align: center;
            color: #000;
            user-select: none;
            z-index: 1;
        }

        .container .message .signature {
            margin-top: 2vh;
            font-size: 20px;
            color: #333;
            letter-spacing: 2px;
            user-select: none;
            z-index: 1;
        }

        .container .buttons {
            margin-top: 10vh;
            width: 40vw;
            display: flex;
            justify-content: space-around;
            z-index: 2;
        }

        .container .buttons div {
            width: 12vw;
            height: 80px;
            line-height: 80px;
            text-align: center;
            font-size: 25px;
            letter-spacing: 3px;
            font-weight: 700;
            cursor: pointer;
            background-color: #fff;
            position: relative;
            overflow: hidden;
            background-color: transparent;
            transition: all .4s;
        }

        .container .buttons div a {
            text-decoration: none;
            color: #666;
        }

        .container .buttons span {
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: transparent;
            z-index: -1;
            border: 3px solid #dbdbdb;
        }

        .buttons span::before {
            content: "";
            position: absolute;
            width: 10%;
            height: 400%;
            background-color: #fff;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) rotate(-50deg);
            transition: all .4s;
        }

        .buttons div:hover span::before {
            transform: translate(-50%, -50%) rotate(-90deg);
        }

        .buttons div:hover {
            font-size: 28px;
        }

        .error {
            width: 15vw;
            height: 5vh;
            background-color: rgba(0, 0, 0, .2);
            position: absolute;
            z-index: 999;
            text-align: center;
            line-height: 5vh;
            font-weight: 600;
            letter-spacing: 4px;
            bottom: 5vh;
            left: 53%;
            display: none;
        }
    </style>
</head>

<body>
    <!-- go to home page -->
    <div class="container">
        <div class="avatar"></div>
        <div class="message">
            <p class="name">张予菲</p>
            <p class="signature">Everything Will Turn Around</p>
        </div>
        <div class="buttons">
            <div class="composition">
                <a href="composition.html">我的作品</a>
                <span></span>
            </div>
            <div class="introduce">
                <a href="#">个人简历</a>
                <span></span>
            </div>
        </div>
        <div class="error">
            <span></span>
            别急，还没做QAQ
        </div>
    </div>

    <script>
        //get element
        let introduce = document.querySelector('.introduce');
        let error = document.querySelector('.error');

        introduce.addEventListener('click', () => {
            error.style.display = 'block';
            setTimeout(()=>{
                error.style.display = 'none';
            }, 2000);
        })
    </script>
</body>

</html>